package com.pzb.order.mapper;

import com.pzb.order.domain.OdOrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单详情Mapper接口
 * 
 * @author Mr_Wu
 * @date 2021-12-15
 */
public interface OdOrderDetailMapper 
{
    /**
     * 查询订单详情
     * 
     * @param id 订单详情主键
     * @return 订单详情
     */
    public OdOrderDetail selectOdOrderDetailById(Long id);


    /**
     * 新增订单详情
     *
     * @param odOrderDetail 订单详情
     * @return 结果
     */
    public int insertOdOrderDetail(OdOrderDetail odOrderDetail);

    /**
     * 修改订单详情
     * 
     * @param odOrderDetail 订单详情
     * @return 结果
     */
    public int updateOdOrderDetail(OdOrderDetail odOrderDetail);

    /**
     * 根据订单编号查询订单详情
     *
     * @param orderCode 订单编号
     * @return 结果
     */
    public List<OdOrderDetail> selectOdOrderDetailByOrderCode(String orderCode);

    List<OdOrderDetail> selectServiceDetailList(@Param("extAppid") String extAppid, @Param("openid")String openid, @Param("serviceStatus")String serviceStatus);
}
